#include "../src/vis-a-v-i-s.h"

int N=1;
double3 vel[1]={{0.1,0.1,0.1}};
double3 pos[1]={{0.03,0.02,0.1}};

void moveGas()
{
  for(int i=0;i<N;i++)
    {
      for(int mu=0;mu<3;mu++)
	{
	  double temp=(pos[i][mu]+vel[i][mu]*0.1);
	  if(temp<-0.5|temp>0.5) vel[i][mu]*=-1;
	  else pos[i][mu]=temp;
	}
    }
  plotGas(N,pos);
}

int main(int narg,char **arg)
{
  initOpenGL(narg,arg,moveGas);
  
  return 0;
}
